package com.example.smart_campus.pojo.dto.teachers;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeachersTable  {



    /**
     * 教师工号
     */
    @Size(max = 20 ,min = 2)
    @NotNull
    private String teacherNo;

    /**
     * 教师姓名
     */
    private String name;

    /**
     * 教师电话
     */
    @NotNull
    private String phone;
    /**
     * 教师专业
     */
    @NotNull
    private String major;

    /**
     * 教授课程
     */
    private List<String> courses;



}
